package com.zzh.ideas.web.model;

/**
 * description: <br>
 * createTime: 2019/9/615:11 <br>
 *
 * @author zzh
 */
public class Person {

    String name;

    String nickName;

    int age;


    public Person(String param1, String param2, int age) {
        this.name = param1;
        this.nickName = param2;
        this.age = age;
    }


    public String getName() {
        return name;
    }


    public Person setName(String name) {
        this.name = name;
        return this;
    }


    public String getNickName() {
        return nickName;
    }


    public Person setNickName(String nickName) {
        this.nickName = nickName;
        return this;
    }


    public int getAge() {
        return age;
    }


    public Person setAge(int age) {
        this.age = age;
        return this;
    }


    @Override
    public String toString() {
        final StringBuilder sb = new StringBuilder("{");
        sb.append("\"name\":\"")
                .append(name).append('\"');
        sb.append(",\"nickName\":\"")
                .append(nickName).append('\"');
        sb.append(",\"age\":")
                .append(age);
        sb.append('}');
        return sb.toString();
    }
}
